package com.song.demo.webmvc.practice.service.impl;

import com.song.demo.webmvc.annotation.GPService;
import com.song.demo.webmvc.practice.service.IQueryService;
import lombok.extern.slf4j.Slf4j;


import java.text.SimpleDateFormat;

import java.util.Date;


@GPService
public class  QueryServiceImpl implements IQueryService {

    public String query(String name) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(new Date());
        String json  = name + format;
        System.out.println("这是在业务方法中打印的" + json);
        return  json;
    }
}
